package repository.impl;

public class CustomerReportItem {
	private int month;
	private int year;
	private long count;
	private String name;
	
	public CustomerReportItem(String name, long count, int month, int year){
		this.month = month;
		this.year = year;
		this.count = count;
		this.name = name;
	}

	public int getMonth() {
		return month;
	}

	public int getYear() {
		return year;
	}

	public long getCount() {
		return count;
	}

	public String getName() {
		return name;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + month;
		result = prime * result + year;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CustomerReportItem other = (CustomerReportItem) obj;
		if (!name.equals(other.name))
			return false;
		if (month != other.month)
			return false;
		if (year != other.year)
			return false;
		return true;
	}
}
